updating oE prompt_string

prompt_string

include console.e 
default namespace is console 
public function prompt_string(sequence prompt) 

prompts the user to enter a string of text.

Parameters:
  1. prompt : is a string that will be displayed on the screen.
Returns:

A sequence, the string that the user typed in, stripped of any new-line character.

Comments:

If the user tries cancelling the prompt by hitting Control+Z, the program will abort, issuing a "Stopped" message.

Example 1:
include std/console.e 
sequence name = prompt_string("What is your name? ") 
See Also:

prompt_number

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu